<script setup lang="ts">
// 1. 导入 defineStore 返回的那个对象
import { useCounterStore } from '@/stores/counter'

const store = useCounterStore()
</script>

<template>
    <h2>我的页面</h2>
    <h3>pinia 中的犄角{{ store.count }}</h3>
    <h3>pinia 中的双倍鸡脚{{ store.doubleCount }}</h3>
    <button @click="store.increment()">点击累加鸡脚</button>
</template>

<style scoped></style>